Skip to content

Conversation

@Aniket-Engg
Copy link
Collaborator

@Aniket-Engg Aniket-Engg commented Sep 24, 2025

fixes #6337

@netlify
Copy link

netlify bot commented Sep 24, 2025

Deploy Preview for reliable-cocada-166884 ready!

Name Link
🔨 Latest commit ca2acf5
🔍 Latest deploy log https://app.netlify.com/projects/reliable-cocada-166884/deploys/6909bcc0e94d6a00089fe98c
😎 Deploy Preview https://deploy-preview-6409--reliable-cocada-166884.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Aniket-Engg Aniket-Engg changed the title remove dep from astwalker remove web3js dependency Sep 24, 2025
@Aniket-Engg Aniket-Engg force-pushed the removeWeb3 branch 2 times, most recently from 17f3ee8 to 0c37735 Compare October 10, 2025 11:44
@Aniket-Engg Aniket-Engg added ready-to-review PR ready to review and removed WIP labels Oct 31, 2025
const { sendValue, sendUnit, gasLimit, selectedAccount } = state.settings;
const { address, decodedResponse, name } = state.instance;
const value = Web3.utils.toWei(sendValue, sendUnit);
const value = parseUnits(sendValue, sendUnit);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you make sure the input types ar ethe same?

const balance = await web3.eth.getBalance(address);
return Web3.utils.fromWei(balance.toString(10), 'ether');
const balance = await provider.getBalance(address);
return formatUnits(balance.toString(10), 'ether');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, formatUnits https://docs.ethers.org/v6/api/utils/#formatUnits works with that

);
const receipt = await tryTillReceiptAvailable(transactionHash);
tx = await tryTillTxAvailable(transactionHash);
const signer = await (provider as BrowserProvider).getSigner();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.getSigner(); wll default to get the signer for the account with index 0... not the selected one.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

.setValue('*[id="search_include"]', '**').sendKeys('*[id="search_include"]', browser.Keys.ENTER).pause(4000)
.elements('css selector', '.search_plugin_search_line', (res) => {
Array.isArray(res.value) && browser.assert.equal(res.value.length, 61)
Array.isArray(res.value) && browser.assert.equal(res.value.length, 39)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change due to the fact the deploy-with-web3 script has been remove?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

}
const bytecode = '0x' + contract.object.evm.bytecode.object
const web3 = await this.call('blockchain', 'web3')
const signer = await web3.getSigner()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will get the first signer in the list.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

try {
resultFn(null, await provider.sendAsync(payload))
// browserProvider._send(payload: JsonRpcPayload | Array<JsonRpcPayload>) => Promise<Array<JsonRpcResult | JsonRpcError>>
resultFn(null, await provider._send(payload))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

send or request not available?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

request is not available, see: https://docs.ethers.org/v6/api/providers/#BrowserProvider ._send returns the response in the way required for script runner

try {
const res = await (this.getWeb3() as any).eth.personal.sendTransaction({ ...tx, value }, { checkRevertBeforeSending: false, ignoreGasPricing: true })
cb(null, res.transactionHash, isCreation, false, null)
const res = await (await this.getWeb3().getSigner()).sendTransaction({ ...tx, value })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this takes the default signer.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@Aniket-Engg Aniket-Engg requested a review from yann300 November 3, 2025 16:22
@Aniket-Engg Aniket-Engg merged commit a43ebb6 into master Nov 4, 2025
34 checks passed
@Aniket-Engg Aniket-Engg deleted the removeWeb3 branch November 4, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review PR ready to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Web3.js from the dependencies list

3 participants